//
//  UIButton+Color.h
//  HX2Car
//
//  Created by Mudmen on 2017/6/19.
//  Copyright © 2017年 Hx2car_mac. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum  {
    GradientTypeTopToBottom = 0,//从上到小
    GradientTypeLeftToRight = 1,//从左到右
    GradientTypeUpleftTolowRight = 2,//左上到右下
    GradientTypeUprightTolowLeft = 3,//右上到左下
}GradientType;

typedef NS_ENUM(NSUInteger, ButtonLocationType) {
    ButtonLocationTypeImageUpAndTitleDown = 0,//从上到小
    ButtonLocationTypeImageDownAndTitleUp = 1,//从左到右
    ButtonLocationTypeImageLeftAndTitleRight = 2,//左上到右下
    ButtonLocationTypeImageRightAndTitleLeft = 3,//右上到左下
};

@interface UIButton (Color)

//!@brief 建议颜色设置为2个相近色为佳，设置3个相近色能形成拟物化的凸起感
- (void)setBackgroundColors:(NSArray *)colorArray forState:(UIControlState)state gradientType:(GradientType)gradientType;
- (UIView *)insterShadowView:(UIColor*)shadowColor shadowWidth:(CGFloat)shadowWidth;
- (UIView *)insterOtherShadowView:(UIColor*)shadowColor shadowWidth:(CGFloat)shadowWidth cornerRadius:(CGFloat)cornerRadius;
@end
